package cn.cvs.dao.forum;

import cn.cvs.pojo.Comment;
import cn.cvs.pojo.Forum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ForumMapper {

    List<Forum> list(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    int getCount();

    int addForum(Forum forum);

    Forum getForumById(@Param("id") Integer id);

    List<Forum> listPage(@Param("state") Integer state,@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    int count(@Param("state") Integer state);

    Forum selectById(@Param("id") Integer id);

    int updateById(Forum forum);
}